-- GENERATED SPELL FOR [Stone Guard Stok'ton] --


function spell0_17493(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17493', 5297, 1)
end

function spell1_17493(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17493', 2299, 1)
end

function Sorts_17493(pUnit, Event)
local choix_sorts_17493 = math.random(0, 1)
if choix_sorts_17493 == 0 then
pUnit:RegisterEvent('spell0_17493', 1, 1)
end
if choix_sorts_17493 == 1 then
pUnit:RegisterEvent('spell1_17493', 1, 1)
end
end

function mob17493_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17493', math.random(1500, 3000), 1)
end

function mob17493_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17493_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17493_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17493, 1, 'mob17493_Action')
RegisterUnitEvent(17493, 2, 'mob17493_Leave')
RegisterUnitEvent(17493, 3, 'mob17493_Kill')
RegisterUnitEvent(17493, 4, 'mob17493_Die')
